package model;

import java.io.Serializable;
import javax.persistence.*;
import java.util.List;


/**
 * The persistent class for the employe database table.
 * 
 */
@Entity
public class Employe implements Serializable {
	private static final long serialVersionUID = 1L;

	@Id
	@Column(name="employe_id")
	private int employeId;

	@Column(name="employe_email")
	private String employeEmail;

	@Column(name="employe_mobile")
	private String employeMobile;

	@Column(name="employe_nom")
	private String employeNom;

	@Column(name="employe_password")
	private String employePassword;

	@Column(name="employe_prenom")
	private String employePrenom;

	@Column(name="employe_telephone")
	private String employeTelephone;

	//bi-directional many-to-one association to Conversation
	@OneToMany(mappedBy="employe1")
	private List<Conversation> conversations1;

	//bi-directional many-to-one association to Conversation
	@OneToMany(mappedBy="employe2")
	private List<Conversation> conversations2;

	//bi-directional many-to-one association to Role
	@ManyToOne
	@JoinColumn(name="role_id")
	private Role role;

	public Employe() {
	}

	public int getEmployeId() {
		return this.employeId;
	}

	public void setEmployeId(int employeId) {
		this.employeId = employeId;
	}

	public String getEmployeEmail() {
		return this.employeEmail;
	}

	public void setEmployeEmail(String employeEmail) {
		this.employeEmail = employeEmail;
	}

	public String getEmployeMobile() {
		return this.employeMobile;
	}

	public void setEmployeMobile(String employeMobile) {
		this.employeMobile = employeMobile;
	}

	public String getEmployeNom() {
		return this.employeNom;
	}

	public void setEmployeNom(String employeNom) {
		this.employeNom = employeNom;
	}

	public String getEmployePassword() {
		return this.employePassword;
	}

	public void setEmployePassword(String employePassword) {
		this.employePassword = employePassword;
	}

	public String getEmployePrenom() {
		return this.employePrenom;
	}

	public void setEmployePrenom(String employePrenom) {
		this.employePrenom = employePrenom;
	}

	public String getEmployeTelephone() {
		return this.employeTelephone;
	}

	public void setEmployeTelephone(String employeTelephone) {
		this.employeTelephone = employeTelephone;
	}

	public List<Conversation> getConversations1() {
		return this.conversations1;
	}

	public void setConversations1(List<Conversation> conversations1) {
		this.conversations1 = conversations1;
	}

	public List<Conversation> getConversations2() {
		return this.conversations2;
	}

	public void setConversations2(List<Conversation> conversations2) {
		this.conversations2 = conversations2;
	}

	public Role getRole() {
		return this.role;
	}

	public void setRole(Role role) {
		this.role = role;
	}

}